﻿// See https://aka.ms/new-console-template for more information

using 雪花ID算法;

var generator = new SnowflakeIdGenerator(workerId: 0, datacenterId: 0);
var id = generator.NextId();
Console.WriteLine(id);
id = generator.NextId();
Console.WriteLine(id);
id = generator.NextId();
Console.WriteLine(id);
id = generator.NextId();
Console.WriteLine(id);

Console.WriteLine("Hello, World!");